<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Font-end-interview-js</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <link rel="icon" href="./web-logo-120.png">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
  <link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
  <link rel="stylesheet" href="./assets/reset.css">
  <script src="https://unpkg.com/docsify/lib/plugins/gitalk.min.js"></script>
  <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
</head>
<body>
  <div id="app">欢迎访问CODEHTML,蜗牛正在LOADING...</div>
  <script>
    window.$docsify = {
      name: 'Font-end-interview-js',
      repo: 'https://github.com/nieyafei/front-end-interview-js',
      auto2top: true,
      themeColor: '#9B30FF',
      coverpage: true,
      loadNavbar: true,
      loadSidebar: true,
      loadSidebar: '_sidebar.md',
      subMaxLevel: 2,
      ga: 'UA-115957523-1',
      search: {
        noData: {
          '/': '找不到结果!'
        },
        paths: 'auto',
        placeholder: {
          '/': '搜索'
        }
      },
      plugins: [
        function (hook, vm) {
          hook.doneEach(function(){
            var path = vm.route.path.split('/').join('');
            var domObj = Docsify.dom;
            var main = domObj.getNode("#main");

            Array.apply(null,document.querySelectorAll("div.gitalk-container")).forEach(function(ele){
              ele.remove();
            });
            
            var divEle = domObj.create("div");
            divEle.id = "gitalk-container-" + path;
            divEle.className = "gitalk-container";
            divEle.style = "width: " + main.clientWidth + "px; margin: 0 auto 20px;";
            domObj.appendTo(domObj.find(".content"), divEle);

            const gitalk = new Gitalk({
              clientID: 'c2006121db8149e616b1',
              clientSecret: 'fd3ccd950b41f136c1dc1767af40f775650d3347',
              repo: 'front-end-interview-js',
              owner: 'nieyafei',
              admin: ['nieyafei'],
              id: path?path:"home",
              // facebook-like distraction free mode
              distractionFreeMode: false
            })
            gitalk.render('gitalk-container-' + path);
          })
        }
      ]
    }
  </script>
  <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
  <script src="https://unpkg.com/docsify-copy-code"></script>
  <script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/ga.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
  <script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
  <script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
  <script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
  <script>
  </script>
</body>
</html>
